$(document).ready(function(){
	$.superbox.settings = {
			boxId: "superbox",
			boxClasses: "",
			overlayOpacity: .2, 
			boxWidth: "900",
			boxHeight: "500",
			loadTxt: "Loading...",
			closeTxt: "Close",
			prevTxt: "Previous",
			nextTxt: "Next"
		};
	
	$(function(){
		$.superbox();
	});
	
	$('#btn-add-servs-urls').click(function(){
		var str_html= ['<p><label class="float-l"><input type="checkbox" id="chkd_serv" name="servers[]" value="',$('#sel-servs option:selected').attr('value'),'" checked/>',$('#sel-servs option:selected').text(),'</label>'];
		str_html.push('<select name="online[]" class="select float-r" id="sel-servs">');
		str_html.push('<option value="0"> Online ??? </option>');
		str_html.push('<option value="1">Si</option>');
		str_html.push('<option value="0">No</option>');
		str_html.push('</select>');
		str_html.push('<input type="text" class="size90" name="sources[]" value="" placeholder="URL" maxlength="100"/></p>');
		
		$('#servs-urls').append(str_html.join(''));
	});
	
	$('#chkd_serv').live('change',function(){
		$(this).parent().parent().remove();
	});	
	
	$('#btn-del-servs-urls').click(function(){
		$('#servs-urls').empty();
	});
	
});